﻿using AutoMapper;
using FreeSqlDemo.Services;
using Magicodes.IE.Demo.Dto;
using Magicodes.IE.Demo.Modules;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Magicodes.IE.Demo.Common
{
    public class EntityASDtoProfile: Profile
    {
        public EntityASDtoProfile()
        {   //ReverseMap();表示正反都可以   MemberList.None跳过验证
            CreateMap<UserInfo, ImportUserInfoDto>(MemberList.None).ReverseMap();
            CreateMap<Student, ImportStudentDto>(MemberList.None).ReverseMap();

        }
    }
}
